﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;
using HammerMUD.Characters;
using HammerMUD.System;
using System.Xml.Serialization;

namespace HammerMUD.Accounts
{
    public class Account
    {
        private String name;
        private String password;
        private String email;
        private Character currentCharacter;
        private List<Character> characters;
        private User user;
        private String customPrompt;

        public String CustomPrompt
        {
            get { return customPrompt; }
            set { customPrompt = value; }
        }

        public String tempPassword;

        [XmlIgnore]
        public Character CurrentCharacter
        {
            get { return currentCharacter; }
            set { currentCharacter = value; }
        }

        [XmlIgnore]
        public User User
        {
            get { return user; }
            set { user = value; }
        }

        public List<Character> Characters
        {
            get { return characters; }
            set { characters = value; }
        }

        public String Email
        {
            get { return email; }
            set { email = value; }
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public String Password
        {
            get { return password; }
            set { password = value; }
        }

        public Account()
        {
            Characters = new List<Character>();
        }

        public void StandardPrompt()
        {
            user.Prompt(customPrompt);
        }
    }
}
